<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>animation</title>
    <style>
        .animation{
            width:100px;
            height:100px;
            background:red;
            position:relative;
            animation:mymove 5s infinite;
            -webkit-animation:mymove 5s infinite;
        }
        @keyframes mymove{
            from {
                left:0px;
            }
            to {
                left:1000px;
            }
        }
    </style>
</head>
<body>
<div class="animation"></div>
</body>
</html>

